home *** CD-ROM | disk | FTP | other *** search
- Q32781 Pascal Functions Returning Double Generate Warning C4058
- C Compiler
- 5.10 | 5.10
- MS-DOS | OS/2
-
- Summary:
- When compiling a program with one of the DS!=SS options (/Aw or
- /Au), calls to Pascal functions returning doubles will generate the
- warning C4058: "address of frame variable taken, DS!=SS." The warning
- should not be generated in this circumstance and can be ignored.
- Microsoft has confirmed this to be a problem in Version 5.10. We
- are researching this problem and will post new information as it
- becomes available.
-
- More Information:
- Compile with the following:
-
- CL /c /Alfw /W3 file.c
-
- The following code demonstrates this problem:
-
- #include<mt\stdio.h>
- #include<mt\math.h>
-
- void get_float_value (float *fl)
- {
- char tmp[50];
- double x;
-
-
- gets (tmp);
- x = atof(tmp);
- *fl = (float)x;
- }
-
- Keywords: buglist5.10
- Updated 88/07/21 03:19
-